package com.beijiteshop.shop.view

import android.content.Context
import android.util.TypedValue
import net.lucode.hackware.magicindicator.buildins.commonnavigator.titles.ColorTransitionPagerTitleView

/**
 * @Author LiaoZhongKai
 * @Date 2021/3/4 10:30
 * @Description 实现Tab文字选中后放大的效果
 */
class SelectBigPagerTitleView(context: Context) : ColorTransitionPagerTitleView(context) {

    override fun onSelected(index: Int, totalCount: Int) {
        setTextSize(TypedValue.COMPLEX_UNIT_DIP,16f)
    }

    override fun onDeselected(index: Int, totalCount: Int) {
        setTextSize(TypedValue.COMPLEX_UNIT_DIP,15f)
    }
}